import VueSetupExtend from 'vite-plugin-vue-setup-extend';

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
	app: {
		head: {
			script: [{ src: '/js/console.js' }],
			title: '蓝云资源导航',
			htmlAttrs: {
				lang: 'zh-CN',
			},
			meta: [
				{
					name: 'description',
					content:
						'蓝云资源导航是一个集合大量优质在线工具的导航网站，包括实用工具、影音工具、图片工具、编程工具、网络资源等几十种分类，覆盖全网在线工具，只收录最优质的的精品网站，做一个真正有用好用的工具导航网站。',
				},
				{
					name: 'keywords',
					content:
						'蓝云资源导航,在线工具导航,实用工具,影音工具,图片工具,编程工具,网络资源,工具导航,工具网站,在线工具,工具,导航网站,导航',
				},
				{ name: 'robots', content: 'index,navigation,details,more,setting' },
			],
		},
	},
	compatibilityDate: '2024-11-01',
	devtools: { enabled: true },
	vite: {
		plugins: [VueSetupExtend()],
	},
	icon: {
		mode: 'css',
		cssLayer: 'base',
	},
	modules: [
		'@nuxt/image',
		'@nuxtjs/tailwindcss',
		'@nuxt/icon',
		'@element-plus/nuxt',
		'@nuxt/eslint',
	],
	tailwindcss: {
		config: {
			darkMode: 'class',
		},
	},
	elementPlus: {
		importStyle: 'css',
		defaultLocale: 'zh-cn',
		themes: ['dark'],
	},
});
